import {request} from 'umi';

// 获取数据
export const getPoster = (name:string) => {
    return request('/poster',{
        params:{
            page:1,
            pageSize:12,
            name
        }
    })
}

// 删除数据
export const deletePoster = (id:string) => {
    return request(`/poster/${id}`,{
        method:"DELETE",
    })
}